-
Notifications
You must be signed in to change notification settings - Fork 29
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ONA Gateway <> Upstream Gateway Merge attempt #179
Conversation
Checking user permissions when requesting for data from the server.
… the Proxy server.
…r assignments for the User requesting the data from the server WIP
- Refactor Permission checker to be Generic - Update Spotless Check dependencies
- Implement Patient POST, PUT, DELETE
- Unit test for HTTP Verb GET permission checker - Unit test for HTTP Verb DELETE permission checker
- Add OpenSRPAccessDecision that pre-processes the request to add location, organization or team tags for data filtering during sync
- Implement PUT Permission Checker - Implement POST Permission Checker - Add unit tests for PUT and POST implementations
…r assignments for the User requesting the data from the server WIP
…r assignments for the User requesting the data from the server WIP
- Authorization Interceptor currently tightly coupled with Patient Finder, temp fix for custom Access Checker
- Permission Checker Implementation For POST Bundle - Add Unit tests
…r assignments for the User requesting the data from the server
- Add random filter to users without location, team or organisation assignments - Disable modification of the complete URL and request path in ServletRequestDetails - Add tests for OpenSRPSyncAccessDecision - Fix tags
…ta-filtering-user-assignments
- Formatting
…ss-checker' into issue/1662-data-filtering-user-assignments-new-branch
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the changes; I think we are much closer to be able to merge this. Let's try to do so very soon and make a new release.
server/src/main/java/com/google/fhir/gateway/BearerAuthorizationInterceptor.java
Outdated
Show resolved
Hide resolved
server/src/main/java/com/google/fhir/gateway/TokenVerifier.java
Outdated
Show resolved
Hide resolved
server/src/main/java/com/google/fhir/gateway/ResourceFinderImp.java
Outdated
Show resolved
Hide resolved
BTW, please also [digitally] sign the Google CLA as well. |
19bf54c
to
09daceb
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the changes. This looks good, just some minor remaining questions/changes below.
server/src/main/java/com/google/fhir/gateway/AllowedQueriesConfig.java
Outdated
Show resolved
Hide resolved
server/src/main/java/com/google/fhir/gateway/AllowedQueriesChecker.java
Outdated
Show resolved
Hide resolved
server/src/main/java/com/google/fhir/gateway/AllowedQueriesChecker.java
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the changes @ndegwamartin and @rehammuzzamil I think this is almost ready. There is just one redundant if
block which I think can be removed. Then we can merge this and make a release.
Description of what I changed
E2E test
TESTED:
Please replace this with a description of how you tested your PR beyond the
automated e2e/unit tests.
Checklist: I completed these to help reviewers :)
I have read and will follow the review process.
I am familiar with Google Style Guides for the language I have coded in.
No? Please take some time and review Java and Python style guides.
My IDE is configured to follow the Google code styles.
No? Unsure? -> configure your IDE.
I have added tests to cover my changes. (If you refactored existing code that was well tested you do not have to add tests)
I ran
mvn clean package
right before creating this pull request and added all formatting changes to my commit.All new and existing tests passed.
My pull request is based on the latest changes of the master branch.
No? Unsure? -> execute command
git pull --rebase upstream master